from django.db import models


# Create your models here.
class ClientInfo(models.Model):
    name = models.CharField(max_length=50, help_text='客户端名称')
    ip = models.CharField(max_length=20, help_text='客户端ip')
    port = models.IntegerField()
    node_id = models.CharField(max_length=50, null=True)
    secret = models.CharField(max_length=50, help_text='密钥')
    sys_type = models.CharField(max_length=20, help_text='客户端类型，注册时添加', null=True)
    isactive = models.IntegerField()
